package com.ximu.szbus.test;

import com.ximu.szbus.R;
import com.ximu.szbus.R.layout;
import com.ximu.szbus.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MotionEvent;

public class Anim1Activity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_anim1);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_anim1, menu);
        return true;
    }

	@Override
	public boolean dispatchTouchEvent(MotionEvent ev) {
		Intent intent = new Intent(this, Anim2Activity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
		return super.dispatchTouchEvent(ev);
	}
    
}
